package com.heifei

/**
 * @author caizhengjun01@gmail.com
 * @date 2020/8/3 9:53 下午
 */
object MethodDemo01 {

  def main(args: Array[String]): Unit = {
    println(add_mul(1, 2, 3, 4, 5, 6, 7, 8, 9))
  }

  def my_print(): Unit = {
    println("my_print...")
  }

  def add_mul(a: Int, b: Int*): Int = {
    a + b.sum
  }
}
